<template>
  <div class="app-container">
    <el-container>
      <el-header class="home-header" style="height:7%;">
        <Header/>
      </el-header>
      <el-container class="home-main">
        <el-aside
          :style="getCollapse?'width:64px;':'width:200px;'"
          class="home-left"
        >
          <SideBar/>
        </el-aside>
        <el-main class="home-right">
          <MainContainer/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
	import Header from '@/views/Home/Header'
	import SideBar from '@/views/Home/SideBar'
	import {mapGetters} from 'vuex'
	import MainContainer from '@/views/Home/MainContainer'

	export default {
		name: 'Home',
		components: {
			Header,
			SideBar,
			MainContainer
		},
		computed: {
			...mapGetters('settings', ['getCollapse'])
		}
	}
</script>

<style lang="scss" scoped>
  //$iconfont:
  .el-container {
    height: 100%;

    .home-header {
      background: #242f42;
    }

    .home-main {
      height: 93%;

      .home-left {
        /*background: cornflowerblue;*/
        overflow-x: hidden;
      }
    }
  }
</style>
